Skip to content

chore: bump MongoDB Java driver to v5.10 - #129

Open
tmcneil-mdb wants to merge 2 commits into
mainfrom
DOCSP-62618-Java-Framework-Update
Open

chore: bump MongoDB Java driver to v5.10#129
tmcneil-mdb wants to merge 2 commits into
mainfrom
DOCSP-62618-Java-Framework-Update

Conversation

@tmcneil-mdb

@tmcneil-mdb tmcneil-mdb commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Updates the MongoDB Java Sync Driver from 5.9.0 to 5.10.0 in the Mflix Java Spring sample
  • Updates various dependencies

Changes

  • mflix/server/java-spring/pom.xml

    • bump spring-boot-starter-parent from 4.0.6 to 4.1.0
    • bump mongodb.version (MongoDB Java Sync Driver) from 5.9.0 to 5.10.0
    • bump springdoc.version from 3.0.3 to 3.1.0
    • bump langchain4j.version from 1.15.0-beta25 to 1.19.0-beta29
  • mflix/server/java-spring/src/main/java/com/mongodb/samplemflix/config/ObjectMapperConfig.java — replace the manual ObjectMapper/JsonFactory beans with a Jackson2ObjectMapperBuilderCustomizer, since Spring Boot 4.1 no longer auto-wires a standalone JsonFactory bean the old way.

  • mflix/server/java-spring/src/main/resources/application.properties — pin spring.http.converters.preferred-json-mapper=jackson2 so HTTP message conversion keeps using Jackson 2 (needed for the custom ObjectId serializer) instead of the new Jackson 3 default in Spring 4.1.

Test plan

  • ./mvnw dependency:tree '-Dincludes=org.mongodb:*' resolves mongodb-driver-sync:5.10.0
  • ./mvnw test — 93/93 tests pass (unit + MongoDB search integration tests against Atlas)

Tech Reviewer Suggestions

This report cross-references PR #129 against the MongoDB Java Driver 5.10.0 release notes. The PR bumps the driver from 5.9.0 to 5.10.0, along with a Spring Boot 4.0.6 → 4.1.0 bump that forced a collateral rewrite of the ObjectMapper configuration (Spring Boot 4.1 no longer autowires a standalone JsonFactory bean, and defaults HTTP JSON conversion to Jackson 3).

Confidence: medium. The driver version bump itself has no code changes to verify against (it's a dependency string), and the release notes show no breaking changes this app's code path depends on. Confidence is capped at medium because Mode B relies on release notes, not a diff.

Testing status: No code examples changed; PR description states 93/93 tests pass, including MongoDB search integration tests against Atlas.

Suggested areas of investigation:

  • [Verify] The collateral Jackson2ObjectMapperBuilderCustomizer rewrite plus the new spring.http.converters.preferred-json-mapper=jackson2 property are unrelated to the driver bump but change how ObjectId/date serialization is wired. Check that these fully replicate the old ObjectMapper/JsonFactory bean behavior rather than just passing the existing test suite by coincidence.

Tech Reviewer Suggestions generated by the pr-coverage-check skill and reviewed by the author. These are suggestions and require human review.

@cbullinger cbullinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks @tmcneil-mdb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants